package com.isoftstone.service;

import com.github.pagehelper.Page;
import com.isoftstone.pojo.Users;
import com.isoftstone.util.Result;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

//业务逻辑接口；处理业务逻辑
public interface UserService {
    //根据手机号查询用户
    Result <Users> queryUserByPhone(String phone);

    //添加用户
    Result<?> insertUser(Users users);
    //修改用户
    Result<?> updateUser(Users users);
    //删除用户
    Result<?> deleteUser(Integer id);
    //查询所有用户
    Page queryAllUser(Integer currentSize, Integer pageSize);

    //用户登录
    Result<?> login(String phone, String password , String photo);

    void exportExcel(HttpServletResponse response) throws IOException;

    Result<?> deleteBatchUser(List<Integer> idList);



}
